import { CHANGE, GETITEMLIST } from '../types/lectureList'
import { createAction } from 'redux-actions'
import lecture from '@/api/lecture'

export const getItemList = createAction(GETITEMLIST, (params) => {
	return new Promise(resolve=>{
	  lecture.getItemList(params).then(res => resolve(res))
	})
})

export const doAgree = createAction(CHANGE, (params, payload) => {
	return new Promise(resolve=>{
	  lecture.doAgree(params).then(res => resolve(payload))
	})
})
